Part Number Hot Search : 
FR107SG CXD2540Q LTC69 SG441020 1FW42 Z5241B CAMH9126 Z5241B
Product Description
Full Text Search
 

To Download D80C187-12 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 80C187 80-BIT MATH COPROCESSOR
Y
High Performance 80-Bit Internal Architecture Implements ANSI IEEE Standard 7541985 for Binary Floating-Point Arithmetic Upward Object-Code Compatible from 8087 Fully Compatible with 387DX and 387SX Math Coprocessors Implements all 387 Architectural Enhancements over 8087 Directly Interfaces with 80C186 CPU 80C186 80C187 Provide a Software Binary Compatible Upgrade from 80186 82188 8087 Systems
Y
Y
Expands 80C186's Data Types to Include 32- 64- 80-Bit Floating-Point 32- 64-Bit Integers and 18-Digit BCD Operands Directly Extends 80C186's Instruction Set to Trigonometric Logarithmic Exponential and Arithmetic Instructions for All Data Types Full-Range Transcendental Operations for SINE COSINE TANGENT ARCTANGENT and LOGARITHM Built-In Exception Handling Eight 80-Bit Numeric Registers Usable as Individually Addressable General Registers or as a Register Stack Available in 40-Pin CERDIP and 44-Pin PLCC Package
(See Packaging Outlines and Dimensions Order 231369)
Y
Y
Y
Y
Y Y
Y Y
Y
The Intel 80C187 is a high-performance math coprocessor that extends the architecture of the 80C186 with floating-point extended integer and BCD data types A computing system that includes the 80C187 fully conforms to the IEEE Floating-Point Standard The 80C187 adds over seventy mnemonics to the instruction set of the 80C186 including support for arithmetic logarithmic exponential and trigonometric mathematical operations The 80C187 is implemented with 1 5 micron high-speed CHMOS III technology and packaged in both a 40-pin CERDIP and a 44-pin PLCC package The 80C187 is upward object-code compatible from the 8087 math coprocessor and will execute code written for the 80387DX and 80387SX math coprocessors
Other brands and names are the property of their respective owners Information in this document is provided in connection with Intel products Intel assumes no liability whatsoever including infringement of any patent or copyright for sale and use of Intel products except as provided in Intel's Terms and Conditions of Sale for such products Intel retains the right to make changes to these specifications at any time without notice Microcomputer Products may have minor variations to this specification known as errata
COPYRIGHT
INTEL CORPORATION 1995
November 1992
Order Number 270640-004
80C187
Figure 1 80C187 Block Diagram 2
270640- 1
80C187
R0 R1 R2 R3 R4 R5 R6 R7
79 SIGN
78 64 EXPONENT
80C187 Data Registers 63 SIGNIFICAND
0
15 CONTROL REGISTER STATUS REGISTER TAG WORD
0
15 0 INSTRUCTION POINTER DATA POINTER
Figure 2 Register Set
FUNCTIONAL DESCRIPTION
The 80C187 Math Coprocessor provides arithmetic instructions for a variety of numeric data types It also executes numerous built-in transcendental functions (e g tangent sine cosine and log functions) The 80C187 effectively extends the register and instruction set of the 80C186 CPU for existing data types and adds several new data types as well Figure 2 shows the additional registers visible to programs in a system that includes the 80C187 Essentially the 80C187 can be treated as an additional resource or an extension to the CPU The 80C186 CPU together with an 80C187 can be used as a single unified system A 80C186 system that includes the 80C187 is completely upward compatible with software for the 8086 8087 The 80C187 interfaces only with the 80C186 CPU The interface hardware for the 80C187 is not implemented on the 80C188
CPU automatically controls the 80C187 whenever a numerics instruction is executed All physical memory and virtual memory of the CPU are available for storage of the instructions and operands of programs that use the 80C187 All memory addressing modes are available for addressing numerics operands The end of this data sheet lists by class the instructions that the 80C187 adds to the instruction set NOTE The 80C187 Math Coprocessor is also referred to as a Numeric Processor Extension (NPX) in this document
Data Types
Table 1 lists the seven data types that the 80C187 supports and presents the format for each type Operands are stored in memory with the least significant digit at the lowest memory address Programs retrieve these values by generating the lowest address For maximum system performance all operands should start at even physical-memory addresses operands may begin at odd addresses but will require extra memory cycles to access the entire operand Internally the 80C187 holds all numbers in the extended-precision real format Instructions that load operands from memory automatically convert operands represented in memory as 16- 32- or 64-bit integers 32- or 64-bit floating-point numbers or 18digit packed BCD numbers into extended-precision real format Instructions that store operands in memory perform the inverse type conversion
PROGRAMMING INTERFACE
The 80C187 adds to the CPU additional data types registers instructions and interrupts specifically designed to facilitate high-speed numerics processing All new instructions and data types are directly supported by the assembler and compilers for high-level languages The 80C187 also supports the full 80387DX instruction set All communication between the CPU and the 80C187 is transparent to applications software The
3
80C187
Numeric Operands
A typical NPX instruction accepts one or two operands and produces one (or sometimes two) results In two-operand instructions one operand is the contents of an NPX register while the other may be a memory location The operands of some instructions are predefined for example FSQRT always takes the square root of the number in the top stack element (refer to the section on Data Registers)
Register Set
Figure 2 shows the 80C187 register set When an 80C187 is present in a system programmers may use these registers in addition to the registers normally available on the CPU DATA REGISTERS 80C187 computations use the extended-precision real data type
Table 1 Data Type Representation in Memory
270640 - 2
NOTES 1 S e Sign bit (0 e Positive 1 e Negative) 2 dn e Decimal digit (two per byte) 3 X e Bits have no significance 80C187 ignores when loading zeros when storing 4 U e Position of implicit binary point 5 I e Integer bit of significand stored in temporary real implicit in single and double precision 6 Exponent Bias (normalized values) Single 127 (7FH) Double 1023 (3FFH) Extended Real 16383 (3FFFH) D0) 7 Packed BCD (b1)S (D17 ) 8 Real ( b1)S (2E-BIAS) (F0 F1
4
80C187
The 80C187 register set can be accessed either as a stack with instructions operating on the top one or two stack elements or as individually addressable registers The TOP field in the status word identifies the current top-of-stack register A ``push'' operation decrements TOP by one and loads a value into the new top register A ``pop'' operation stores the value from the current top register and then increments TOP by one The 80C187 register stack grows ``down'' toward lower-addressed registers Instructions may address the data registers either implicitly or explicitly Many instructions operate on the register at the TOP of the stack These instructions implicitly address the register at which TOP points Other instructions allow the programmer to explicitly specify which register to use This explicit addressing is also relative to TOP TAG WORD The tag word marks the content of each numeric data register as Figure 3 shows Each two-bit tag represents one of the eight data registers The principal function of the tag word is to optimize the NPX's performance and stack handling by making it possible to distinguish between empty and nonempty register locations It also enables exception handlers to identify special values (e g NaNs or denormals) in the contents of a stack location without the need to perform complex decoding of the actual data STATUS WORD The 16-bit status word (in the status register) shown in Figure 4 reflects the overall state of the 80C187 It may be read and inspected by programs Bit 15 the B-bit (busy bit) is included for 8087 compatibility only It always has the same value as the ES bit (bit 7 of the status word) it does not indicate the status of the BUSY output of 80C187 Bits 13 - 11 (TOP) point to the 80C187 register that is the current top-of-stack The four numeric condition code bits (C3 -C0) are similar to the flags in a CPU instructions that perform arithmetic operations update these bits to reflect the outcome The effects of these instructions on the condition code are summarized in Tables 2 through 5 Bit 7 is the error summary (ES) status bit This bit is set if any unmasked exception bit is set it is clear otherwise If this bit is set the ERROR signal is asserted Bit 6 is the stack flag (SF) This bit is used to distinguish invalid operations due to stack overflow or underflow from other kinds of invalid operations When SF is set bit 9 (C1) distinguishes between stack overflow (C1 e 1) and underflow (C1 e 0) Figure 4 shows the six exception flags in bits 5 - 0 of the status word Bits 5 - 0 are set to indicate that the 80C187 has detected an exception while executing an instruction A later section entitled ``Exception Handling'' explains how they are set and used Note that when a new value is loaded into the status word by the FLDENV or FRSTOR instruction the value of ES (bit 7) and its reflection in the B-bit (bit 15) are not derived from the values loaded from memory but rather are dependent upon the values of the exception flags (bits 5 - 0) in the status word and their corresponding masks in the control word If ES is set in such a case the ERROR output of the 80C187 is activated immediately 0 TAG (6) TAG (5) TAG (4) TAG (3) TAG (2) TAG (1) TAG (0)
15 TAG (7)
NOTE The index i of tag(i) is not top-relative A program typically uses the ``top'' field of Status Word to determine which tag(i) field refers to logical top of stack TAG VALUES 00 e Valid 01 e Zero 10 e QNaN SNaN Infinity Denormal and Unsupported Formats 11 e Empty
Figure 3 Tag Word
5
80C187
270640 - 3 ES is set if any unmasked exception bit is set cleared otherwise See Table 2 for interpretation of condition code TOP values 000 e Register 0 is Top of Stack 001 e Register 1 is Top of Stack

111 e Register 7 is Top of Stack For definitions of exceptions refer to the section entitled ``Exception Handling''
Figure 4 Status Word
6
80C187
CONTROL WORD The NPX provides several processing options that are selected by loading a control word from memory into the control register Figure 5 shows the format and encoding of fields in the control word Table 2 Condition Code Interpretation Instruction FPREM FPREM1 (See Table 3) C0(S) C3(Z) C1(A) C2(C) Reduction 0 e Complete 1 e Incomplete
Three Least Significant Bits of Quotient Q2 Q0
Q1 or O U Zero or OU
FCOM FCOMP FCOMPP FTST FUCOM FUCOMP FUCOMPP FICOM FICOMP FXAM FCHS FABS FXCH FINCSTP FDECSTP Constant Loads FXTRACT FLD FILD FBLD FSTP (Ext Real) FIST FBSTP FRNDINT FST FSTP FADD FMUL FDIV FDIVR FSUB FSUBR FSCALE FSQRT FPATAN F2XM1 FYL2X FYL2XP1 FPTAN FSIN FCOS FSINCOS
Result of Comparison (See Table 4)
Operand is not Comparable (Table 4)
Operand Class (See Table 5)
Sign or O U
Operand Class (Table 5)
UNDEFINED
Zero or O U
UNDEFINED
UNDEFINED
Roundup or O U
UNDEFINED
UNDEFINED
Roundup or O U Undefined if C2 e 1
Reduction 0 e Complete 1 e Incomplete
FLDENV FRSTOR FLDCW FSTENV FSTCW FSTSW FCLEX FINIT FSAVE
OU
Each Bit Loaded from Memory
UNDEFINED
When both IE and SF bits of status word are set indicating a stack exception this bit distinguishes between stack overflow (C1 e 1) and underflow (C1 e 0) Reduction If FPREM or FPREM1 produces a remainder that is less than the modulus reduction is complete When reduction is incomplete the value at the top of the stack is a partial remainder which can be used as input to further reduction For FPTAN FSIN FCOS and FSINCOS the reduction bit is set if the operand at the top of the stack is too large In this case the original operand remains at the top of the stack Roundup When the PE bit of the status word is set this bit indicates whether one was added to the least significant bit of the result during the last rounding UNDEFINED Do not rely on finding any specific value in these bits
7
80C187
The low-order byte of this control word configures exception masking Bits 5-0 of the control word contain individual masks for each of the six exceptions that the 80C187 recognizes The high-order byte of the control word configures the 80C187 operating mode including precision rounding and infinity control as the unbiased round to nearest even mode specified in the IEEE standard Rounding control affects only those instructions that perform rounding at the end of the operation (and thus can generate a precision exception) namely FST FSTP FIST all arithmetic instructions (except FPREM FPREM1 FXTRACT FABS and FCHS) and all transcendental instructions The precision control (PC) bits (bits 9 - 8) can be used to set the 80C187 internal operating precision of the significand at less than the default of 64 bits (extended precision) This can be useful in providing compatibility with early generation arithmetic processors of smaller precision PC affects only the instructions ADD SUB DIV MUL and SQRT For all other instructions either the precision is determined by the opcode or extended precision is used
The ``infinity control bit'' (bit 12) is not meaningful
to the 80C187 and programs must ignore its value To maintain compatibility with the 8087 this bit can be programmed however regardless of its value the 80C187 always treats infinity in the affine sense ( b % k a % ) This bit is initialized to zero both after a hardware reset and after the FINIT instruction
The rounding control (RC) bits (bits 11-10) provide for directed rounding and true chop as well
Table 3 Condition Code Interpretation after FPREM and FPREM1 Instructions Condition Code C2 1 C3 X Q1 0 0 1 1 0 0 1 1 C1 X Q0 0 1 0 1 0 1 0 1 C0 X Q2 0 0 0 0 1 1 1 1 Q MOD 8 0 1 2 3 4 5 6 7 Complete Reduction C0 C3 C1 Contain Three Least Significant Bits of Quotient Interpretation after FPREM and FPREM1 Incomplete Reduction Further Iteration Required for Complete Reduction
0
Table 4 Condition Code Resulting from Comparison Order TOP l Operand TOP k Operand TOP e Operand Unordered C3 0 0 1 1 C2 0 0 0 1 C0 0 1 0 1
8
80C187
Table 5 Condition Code Defining Operand Class C3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 C2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 C1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 C0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Value at TOP
a Unsupported a NaN b Unsupported b NaN a Normal a Infinity b Normal b Infinity a0 a Empty b0 b Empty a Denormal b Denormal
INSTRUCTION AND DATA POINTERS Because the NPX operates in parallel with the CPU any exceptions detected by the NPX may be reported after the CPU has executed the ESC instruction which caused it To allow identification of the failing numerics instruction the 80C187 contains registers that aid in diagnosis These registers supply the opcode of the failing numerics instruction the address of the instruction and the address of its numerics memory operand (if appropriate) The instruction and data pointers are provided for user-written exception handlers Whenever the 80C187 executes a new ESC instruction it saves the address of the instruction (including any prefixes that may be present) the address of the operand (if present) and the opcode The instruction and data pointers appear in the format shown by Figure 6 The ESC instruction FLDENV FSTENV FSAVE and FRSTOR are used to transfer these values between the registers and memory Note that the value of the data pointer is undefined if the prior ESC instruction did not have a memory operand
rupt The CPU return address pushed onto the stack of the exception handler points to an ESC instruction (including prefixes) This instruction can be restarted after clearing the exception condition in the NPX FNINIT FNCLEX FNSTSW FNSTENV and FNSAVE cannot cause this interrupt
Exception Handling
The 80C187 detects six different exception conditions that can occur during instruction execution Table 6 lists the exception conditions in order of precedence showing for each the cause and the default action taken by the 80C187 if the exception is masked by its corresponding mask bit in the control word Any exception that is not masked by the control word sets the corresponding exception flag of the status word sets the ES bit of the status word and asserts the ERROR signal When the CPU attempts to execute another ESC instruction interrupt 16 occurs The exception condition must be resolved via an interrupt service routine The return address pushed onto the CPU stack upon entry to the service routine does not necessarily point to the failing instruction nor to the following instruction The 80C187 saves the address of the floating-point instruction that caused the exception and the address of any memory operand required by that instruction If error trapping is required at the end of a series of numerics instructions (specifically when the last ESC instruction modifies memory data and that data is used in subsequent nonnumerics instructions) it is necessary to insert the FNOP instruction to force the 80C187 to check its ERROR input
Interrupt Description
CPU interrupt 16 is used to report exceptional conditions while executing numeric programs Interrupt 16 indicates that the previous numerics instruction caused an unmasked exception The address of the faulty instruction and the address of its operand are stored in the instruction pointer and data pointer registers Only ESC instructions can cause this inter-
9
80C187
270640 - 4
Precision Control 00 24 Bits (Single Precision) 01 (Reserved) 10 53 Bits (Double Precision) 11 64 Bits (Extended Precision)
Rounding Control 00 Round to Nearest or Even 01 Round Down (toward b % ) 10 Round Up (toward a % ) 11 Chop (Truncate toward Zero)
The ``infinity control'' bit is not meaningful to the 80C187 To maintain compatibility with the 8087 this bit can be programmed however regardless of its value the 80C187 treats infinity in the affine sense ( b% k a % )
Figure 5 Control Word
15 7 CONTROL WORD STATUS WORD TAG WORD INSTRUCTION POINTER15 0 IP19 16 0 OPCODE10 0 OPERAND POINTER15 0 OP19 16 0 0 0 0 0 0 0 0 0 0 0 0 0
a0 a2 a4 a6 a8 aA aC
Figure 6 Instruction and Data Pointer Image in Memory
10
80C187
Table 6 Exceptions Exception Invalid Operation Cause Operation on a signalling NaN unsupported format indeterminate form (0 % 0 0) ( a % ) a ( b % ) etc ) or stack overflow underflow (SF is also set) At least one of the operands is denormalized i e it has the smallest exponent but a nonzero significand The divisor is zero while the dividend is a noninfinite nonzero number The result is too large in magnitude to fit in the specified format The true result is nonzero but too small to be represented in the specified format and if underflow exception is masked denormalization causes loss of accuracy The true result is not exactly representable in the specified format (e g 1 3) the result is rounded according to the rounding mode Default Action (If Exception is Masked) Result is a quiet NaN integer indefinite or BCD indefinite
Denormalized Operand Zero Divisor Overflow Underflow
The operand is normalized and normal processing continues Result is % Result is largest finite value or % Result is denormalized or zero
Inexact Result (Precision)
Normal processing continues
Initialization
After FNINIT or RESET the control word contains the value 037FH (all exceptions masked precision control 64 bits rounding to nearest) the same values as in an 8087 after RESET For compatibility with the 8087 the bit that used to indicate infinity control (bit 12) is set to zero however regardless of its setting infinity is treated in the affine sense After FNINIT or RESET the status word is initialized as follows
8087 Compatibility
This section summarizes the differences between the 80C187 and the 8087 Many changes have been designed into the 80C187 to directly support the IEEE standard in hardware These changes result in increased performance by elminating the need for software that supports the standard GENERAL DIFFERENCES The 8087 instructions FENI FNENI and FDISI FNDISI perform no useful function in the 80C187 Numeric Processor Extension They do not alter the state of the 80C187 Numeric Processor Extension (They are treated similarly to FNOP except that ERROR is not checked ) While 8086 8087 code containing these instructions can be executed on the 80C186 80C187 it is unlikely that the exceptionhandling routines containing these instructions will be completely portable to the 80C187 Numeric Processor Extension The 80C187 differs from the 8087 with respect to instruction data and exception synchronization Except for the processor control instructions all of the 80C187 numeric instructions are automatically synchronized by the 80C186 CPU When necessary the
All exceptions are set to zero Stack TOP is zero so that after the first push the
stack top will be register seven (111B) The condition code C3 -C0 is undefined The B-bit is zero The tag word contains FFFFH (all stack locations are empty) 80C186 80C187 initialization software should execute an FNINIT instruction (i e an FINIT without a preceding WAIT) after RESET The FNINIT is not strictly required for 80C187 software but Intel recommends its use to help ensure upward compatibility with other processors
11
80C187
80C186 automatically tests the BUSY line from the 80C187 Numeric Processor Extension to ensure that the 80C187 Numeric Processor Extension has completed its previous instruction before executing the next ESC instruction No explicit WAIT instructions are required to assure this synchronization For the 8087 used with 8086 and 8088 CPUs explicit WAITs are required before each numeric instruction to ensure synchronization Although 8086 8087 programs having explicit WAIT instructions will execute on the 80C186 80C187 these WAIT instructions are unnecessary The 80C187 supports only affine closure for infinity arithmetic not projective closure Operands for FSCALE and FPATAN are no longer restricted in range (except for g % ) F2XM1 and FPTAN accept a wider range of operands Rounding control is in effect for FLD constant Software cannot change entries of the tag word to values (other than empty) that differ from actual register contents After reset FINIT and incomplete FPREM the 80C187 resets to zero the condition code bits C3 - C0 of the status word In conformance with the IEEE standard the 80C187 does not support the special data formats pseudozero pseudo-NaN pseudoinfinity and unnormal The denormal exception has a different purpose on the 80C187 A system that uses the denormal-exception handler solely to normalize the denormal operands would better mask the denormal exception on the 80C187 The 80C187 automatically normalizes denormal operands when the denormal exception is masked EXCEPTIONS A number of differences exist due to changes in the IEEE standard and to functional improvements to the architecture of the 80C186 80C187 1 The 80C186 80C187 traps exceptions only on the next ESC instruction i e the 80C186 does not notice unmasked 80C187 exceptions on the 80C186 ERROR input line until a later numerics instruction is executed Because the 80C186 does not sample ERROR on WAIT and FWAIT instructions programmers should place an FNOP instruction at the end of a sequence of numerics instructions to force the 80C186 to sample its ERROR input 2 The 80C187 Numeric Processor Extension signals exceptions through a dedicated ERROR line to the CPU The 80C187 error signal does not pass through an interrupt controller (the 8087 INT signal does) Therefore any interrupt-controlleroriented instructions in numerics exception handlers for the 8086 8087 should be deleted 3 Interrupt vector 16 must point to the numerics exception handling routine 4 The ESC instruction address saved in the 80C187 Numeric Processor Extension includes any leading prefixes before the ESC opcode The corresponding address saved in the 8087 does not include leading prefixes 5 When the overflow or underflow exception is masked the 80C187 differs from the 8087 in rounding when overflow or underflow occurs The 80C187 produces results that are consistent with the rounding mode 6 When the underflow exception is masked the 80C187 sets its underflow flag only if there is also a loss of accuracy during denormalization 7 Fewer invalid-operation exceptions due to denormal operands because the instructions FSQRT FDIV FPREM and conversions to BCD or to integer normalize denormal operands before proceeding 8 The FSQRT FBSTP and FPREM instructions may cause underflow because they support denormal operands 9 The denormal exception can occur during the transcendental instructions and the FXTRACT instruction 10 The denormal exception no longer takes precedence over all other exceptions 11 When the denormal exception is masked the 80C187 automatically normalizes denormal operands The 8087 performs unnormal arithmetic which might produce an unnormal result 12 When the operand is zero the FXTRACT instruction reports a zero-divide exception and leaves b % in ST(1) 13 The status word has a new bit (SF) that signals when invalid-operation exceptions are due to stack underflow or overflow 14 FLD extended precision no longer reports denormal exceptions because the instruction is not numeric 15 FLD single double precision when the operand is denormal converts the number to extended precision and signals the denormalized oper-
12
80C187
and exception When loading a signalling NaN FLD single double precision signals an invalidoperand exception 16 The 80C187 only generates quiet NaNs (as on the 8087) however the 80C187 distinguishes between quiet NaNs and signalling NaNs Signalling NaNs trigger exceptions when they are used as operands quiet NaNs do not (except for FCOM FIST and FBSTP which also raise IE for quiet NaNs) 17 When stack overflow occurs during FPTAN and overflow is masked both ST(0) and ST(1) contain quiet NaNs The 8087 leaves the original operand in ST(1) intact 18 When the scaling factor is g % the FSCALE (ST(0) ST(1) instruction behaves as follows (ST(0) and ST(1) contain the scaled and scaling operands respectively) FSCALE (0 % ) generates the invalid operation exception FSCALE (finite b % ) generates zero with the same sign as the scaled operand FSCALE (finite a % ) generates % with the same sign as the scaled operand The 8087 returns zero in the first case and raises the invalid-operation exception in the other cases 19 The 80C187 returns signed infinity zero as the unmasked response to massive overflow underflow The 8087 supports a limited range for the scaling factor within this range either massive overflow underflow do not occur or undefined results are produced
Table 7 Pin Summary Pin Name CLK CKM RESET PEREQ BUSY ERROR D15 -D0 NPRD NPWR NPS1 NPS2 CMD0 CMD1 VCC VSS Function CLocK ClocKing Mode System reset Processor Extension REQuest Busy status Error status Data pins Numeric Processor ReaD Numeric Processor WRite NPX select 1 NPX select 2 CoMmanD 0 CoMmanD 1 System power System ground Active State Input Output I I I O O O IO I I I I I I I I
High High High Low High Low Low Low High High High
13
80C187
HARDWARE INTERFACE
In the following description of hardware interface an overbar above a signal name indicates that the active or asserted state occurs when the signal is at a low voltage When no overbar is present above the signal name the signal is asserted when at the high voltage level
Signal Description
In the following signal descriptions the 80C187 pins are grouped by function as follows 1 Execution Control 2 NPX Handshake 3 Bus Interface Pins 4 Chip Port Select 5 Power Supplies CLK CKM RESET PEREQ BUSY ERROR D15 -D0 NPWR NPRD NPS1 NPS2 CMD0 CMD1 VCC VSS
Table 7 lists every pin by its identifier gives a brief description of its function and lists some of its characteristics Figure 7 shows the locations of pins on the CERDIP package while Figure 8 shows the locations of pins on the PLCC package Table 8 helps to locate pin identifiers in Figures 7 and 8
N C e Pin Not Connected
270640 - 5
Clock (CLK) This input provides the basic timing for internal operation This pin does not require MOS-level input it will operate at either TTL or MOS levels up to the maximum allowed frequency A minimum frequency must be provided to keep the internal logic properly functioning Depending on the signal on CKM the signal on CLK can be divided by two to produce the internal clock signal (in which case CLK may be up to 32 MHz in frequency) or can be used directly (in which case CLK may be up to 12 5 MHz) Clocking Mode (CKM) This pin is a strapping option When it is strapped to VCC (HIGH) the CLK input is used directly when strapped to VSS (LOW) the CLK input is divided by two to produce the internal clock signal During the RESET sequence this input must be stable at least four internal clock cycles (i e CLK clocks when CKM is HIGH 2 c CLK clocks when CKM is LOW) before RESET goes LOW
Figure 7 CERDIP Pin Configuration
270640 - 6
N C e Pin Not Connected ``Top View'' means as the package is seen from the component side of the board
Figure 8 PLCC Pin Configuration
14
80C187
Table 8 PLCC Pin Cross-Reference Pin Name BUSY CKM CLK CMD0 CMD1 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 ERROR No Connect NPRD NPS1 NPS2 NPWR PEREQ RESET VCC VSS System Reset (RESET) A LOW to HIGH transition on this pin causes the 80C187 to terminate its present activity and to enter a dormant state RESET must remain active (HIGH) for at least four internal clock periods (The relation of the internal clock period to CLK depends on CLKM the internal clock may be different from that of the CPU ) Note that the 80C187 is active internally for 25 clock periods after the termination of the RESET signal (the HIGH to LOW transition of RESET) therefore the first instruction should not be written to the 80C187 until 25 internal clocks after the falling edge of RESET Table 9 shows the status of the output pins during the reset sequence After a reset all output pins return to their inactive states CERDIP Package 25 39 32 29 31 23 22 21 20 19 18 17 16 15 14 12 11 8 7 6 5 26 2 27 34 33 28 24 35 3 9 13 37 40 1 4 10 30 36 38 PLCC Package 28 44 36 32 35 26 25 24 22 21 20 19 18 17 16 14 13 9 8 7 5 29 6 11 23 33 40 30 38 37 31 27 39 1 3 10 15 42 2 4 12 34 41 43 Table 9 Output Pin Status during Reset Output Pin Name BUSY ERROR PEREQ D15 -D0 Value during Reset HIGH HIGH LOW TRI-STATE OFF
Processor Extension Request (PEREQ) When active this pin signals to the CPU that the 80C187 is ready for data transfer to from its data FIFO When there are more than five data transfers
15
80C187
PEREQ is deactivated after the first three transfers and subsequently after every four transfers This signal always goes inactive before BUSY goes inactive Busy Status (BUSY) When active this pin signals to the CPU that the 80C187 is currently executing an instruction This pin is active HIGH It should be connected to the 80C186's TEST BUSY pin During the RESET sequence this pin is HIGH The 80C186 uses this HIGH state to detect the presence of an 80C187 Error Status (ERROR) This pin reflects the ES bit of the status register When active it indicates that an unmasked exception has occurred This signal can be changed to inactive state only by the following instructions (without a preceding WAIT) FNINIT FNCLEX FNSTENV FNSAVE FLDCW FLDENV and FRSTOR This pin should be connected to the ERROR pin of the CPU ERROR can change state only when BUSY is active Data Pins (D15 -D0) These bidirectional pins are used to transfer data and opcodes between the CPU and 80C187 They are normally connected directly to the corresponding CPU data pins Other buffers drivers driving the local data bus must be disabled when the CPU reads from the NPX High state indicates a value of one D0 is the least significant data bit Numeric Processor Write (NPWR) A signal on this pin enables transfers of data from the CPU to the NPX This input is valid only when NPS1 and NPS2 are both active Numeric Processor Read (NPRD) A signal on this pin enables transfers of data from the NPX to the CPU This input is valid only when NPS1 and NPS2 are both active Numeric Processor Selects (NPS1 and NPS2) Concurrent assertion of these signals indicates that the CPU is performing an escape instruction and enables the 80C187 to execute that instruction No These pins along with the select pins allow the CPU to direct the operation of the 80C187 System Power (VCC) System power provides the a 5V g10% DC supply input All VCC pins should be tied together on the circuit board and local decoupling capacitors should be used between VCC and VSS System Ground (VSS) All VSS pins should be tied together on the circuit board and local decoupling capacitors should be used between VCC and VSS data transfer involving the 80C187 occurs unless the device is selected by these lines Command Selects (CMD0 and CMD1)
Processor Architecture
As shown by the block diagram (Figure 1) the 80C187 NPX is internally divided into three sections the bus control logic (BCL) the data interface and control unit and the floating-point unit (FPU) The FPU (with the support of the control unit which contains the sequencer and other support units) executes all numerics instructions The data interface and control unit is responsible for the data flow to and from the FPU and the control registers for receiving the instructions decoding them and sequencing the microinstructions and for handling some of the administrative instructions The BCL is responsible for CPU bus tracking and interface BUS CONTROL LOGIC The BCL communicates solely with the CPU using I O bus cycles The BCL appears to the CPU as a special peripheral device It is special in two respects the CPU initiates I O automatically when it encounters ESC instructions and the CPU uses reserved I O addresses to communicate with the BCL The BCL does not communicate directly with memory The CPU performs all memory access transferring input operands from memory to the 80C187 and transferring outputs from the 80C187 to memory A dedicated communication protocol makes possible high-speed transfer of opcodes and operands between the CPU and 80C187
16
80C187
Table 10 Bus Cycles Definition NPS1 x 1 0 0 0 0 0 0 0 0 NPS2 0 x 1 1 1 1 1 1 1 1 CMD0 x x 0 0 1 1 0 0 1 1 CMD1 x x 0 0 0 0 1 1 1 1 NPRD x x 1 0 0 1 1 0 0 1 NPWR x x 0 1 1 0 0 1 1 0 Bus Cycle Type 80C187 Not Selected 80C187 Not Selected Opcode Write to 80C187 CW or SW Read from 80C187 Read Data from 80C187 Write Data to 80C187 Write Exception Pointers Reserved Read Opcode Status Reserved
DATA INTERFACE AND CONTROL UNIT The data interface and control unit latches the data and subject to BCL control directs the data to the FIFO or the instruction decoder The instruction decoder decodes the ESC instructions sent to it by the CPU and generates controls that direct the data flow in the FIFO It also triggers the microinstruction sequencer that controls execution of each instruction If the ESC instruction is FINIT FCLEX FSTSW FSTSW AX FSTCW FSETPM or FRSTPM the control executes it independently of the FPU and the sequencer The data interface and control unit is the one that generates the BUSY PEREQ and ERROR signals that synchronize 80C187 activities with the CPU FLOATING-POINT UNIT The FPU executes all instructions that involve the register stack including arithmetic logical transcendental constant and data transfer instructions The
data path in the FPU is 84 bits wide (68 significant bits 15 exponent bits and a sign bit) which allows internal operand transfers to be performed at very high speeds
Bus Cycles
The pins NPS1 NPS2 CMD0 CMD1 NPRD and NPWR identify bus cycles for the NPX Table 10 defines the types of 80C187 bus cycles 80C187 ADDRESSING The NPS1 NPS2 CMD0 and CMD1 signals allow the NPX to identify which bus cycles are intended for the NPX The NPX responds to I O cycles when the I O address is 00F8H 00FAH 00FCH or 00FEH The correspondence betwen I O addresses and control signals is defined by Table 11 To guarantee correct operation of the NPX programs must not perform any I O operations to these reserved port addresses
Table 11 I O Address Decoding I O Address (Hexadecimal) 00F8 00FA 00FC 00FE 80C187 Select and Command Inputs NPS2 1 1 1 1 NPS1 0 0 0 0 CMD1 0 0 1 1 CMD0 0 1 0 1
17
80C187
CPU NPX SYNCHRONIZATION The pins BUSY PEREQ and ERROR are used for various aspects of synchronization between the CPU and the NPX BUSY is used to synchronize instruction transfer from the CPU to the 80C187 When the 80C187 recognizes an ESC instruction it asserts BUSY For most ESC instructions the CPU waits for the 80C187 to deassert BUSY before sending the new opcode The NPX uses the PEREQ pin of the CPU to signal that the NPX is ready for data transfer to or from its data FIFO The NPX does not directly access memory rather the CPU provides memory access services for the NPX Once the CPU initiates an 80C187 instruction that has operands the CPU waits for PEREQ signals that indicate when the 80C187 is ready for operand transfer Once all operands have been transferred (or if the instruction has no operands) the CPU continues program execution while the 80C187 executes the ESC instruction In 8086 8087 systems WAIT instructions are required to achieve synchronization of both commands and operands The 80C187 however does not require WAIT instructions The WAIT or FWAIT instruction commonly inserted by high-level compilers and assembly-language programmers for exception synchronization is not treated as an instruction by the 80C186 and does not provide exception trapping (Refer to the section ``System Configuration for 8087-Compatible Exception Trapping'' ) Once it has started to execute a numerics instruction and has transferred the operands from the CPU the 80C187 can process the instruction in parallel with and independent of the host CPU When the NPX detects an exception it asserts the ERROR signal which causes a CPU interrupt
OPCODE INTERPRETATION The CPU and the NPX use a bus protocol that adapts to the numerics opcode being executed Only the NPX directly interprets the opcode Some of the results of this interpretation are relevant to the CPU The NPX records these results (opcode status information) in an internal 16-bit register The 80C186 accesses this register only via reads from NPX port 00FEH Tables 10 and 11 define the signal combinations that correspond to each of the following steps 1 The CPU writes the opcode to NPX port 00F8H This write can occur even when the NPX is busy or is signalling an exception The NPX does not necessarily begin executing the opcode immediately 2 The CPU reads the opcode status information from NPX port 00FEH 3 The CPU initiates subsequent bus cycles according to the opcode status information The opcode status information specifies whether to wait until the NPX is not busy when to transfer exception pointers to port 00FCH when to read or write operands and results at port 00FAH etc For most instructions the NPX does not start executing the previously transferred opcode until the CPU (guided by the opcode status information) first writes exception pointer information to port 00FCH of the NPX This protocol is completely transparent to programmers
Bus Operation
With respect to bus interface the 80C187 is fully asynchronous with the CPU even when it operates from the same clock source as the CPU The CPU initiates a bus cycle for the NPX by activating both NPS1 and NPS2 the NPX select signals During the CLK period in which NPS1 and NPS2 are activated the 80C187 also examines the NPRD and NPRW
18
80C187
input signals to determine whether the cycle is a read or a write cycle and examines the CMD0 and CMD1 inputs to determine whether an opcode operand or control status register transfer is to occur The 80C187 activates its BUSY output some time after the leading edge of the NPRD or NPRW signal Input and ouput data are referenced to the trailing edges of the NPRD and NPRW signals The 80C187 activates the PEREQ signal when it is ready for data transfer The 80C187 deactivates PEREQ automatically
The 80C186 pin MCS3 NPS is connected to
NPS1 NPS2 is connected to VCC Note that if the 80C186 CPU's DEN signal is used to gate external data buffers it must be combined with the NPS signal to insure numeric accesses will not activate these buffers The NPRD and NPRW pins are connected to the RD and WR pins of the 80C186 CMD1 and CMD0 come from the latched A2 and A1 of the 80C186 respectively The 80C187 BUSY output connects to the 80C186 TEST BUSY input During RESET the signal at the 80C187 BUSY output automatically programs the 80C186 to use the 80C187
System Configuration
The 80C187 can be connected to the 80C186 CPU as shown by Figure 9 (Refer to the 80C186 Data Sheet for an explanation of the 80C186's signals ) This interface has the following characteristics
The 80C187 can use the CLKOUT signal of the
80C186 to conserve board space when operating at 12 5 MHz or less In this case the 80C187 CKM input must be pulled HIGH For operation in excess of 12 5 MHz a double-frequency external oscillator for CLK input is needed In this case CKM must be pulled LOW
The 80C187's NPS1 ERROR PEREQ and
BUSY pins are connected directly to the corresponding pins of the 80C186
270640 - 7
Figure 9 80C186 80C187 System Configuration
19
80C187
For exception handling compatible with the 80186 82188 8087 the 80C186 can be wired to recognize exceptions through an external interrupt pin as Figure 10 shows (Refer to the 80C186 Data Sheet for an explanation of the 80C186's signals ) With this arrangement a flip-flop is needed to latch BUSY upon assertion of ERROR The latch can then be cleared during the exception-handler routine by forcing a PCS pin active The latch must also be cleared at RESET in order for the 80C186 to work with the 80C187
System Configuration for 80186 80187-Compatible Exception Trapping
When the 80C187 ERROR output signal is connected directly to the 80C186 ERROR input floatingpoint exceptions cause interrupt 16 However existing software may be programmed to expect floating-point exceptions to be signalled over an external interrupt pin via an interrupt controller
270640 - 8
For input clocking options refer to Figure 9
Figure 10 System Configuration for 8087-Compatible Exception Trapping
20
80C187
ELECTRICAL DATA Absolute Maximum Ratings
Case Temperature Under Bias (TC) Storage Temperature Voltage on Any Pin with Respect to Ground Power Dissipation 0 C to a 85 C
b 65 C to a 150 C b 0 5V to VCC a 0 5V
NOTICE This is a production data sheet The specifications are subject to change without notice
WARNING Stressing the device beyond the ``Absolute Maximum Ratings'' may cause permanent damage These are stress ratings only Operation beyond the ``Operating Conditions'' is not recommended and extended exposure beyond the ``Operating Conditions'' may affect device reliability
1 5W
Power and Frequency Requirements
The typical relationship between ICC and the frequency of operation F is as follows
ICCtyp e 55 a 5 F mA where F is in MHz
When the frequency is reduced below the minimum operating frequency specified in the AC Characteristics table the internal states of the 80C187 may become indeterminate The 80C187 clock cannot be stopped otherwise ICC would increase significantly beyond what the equation above indicates
DC Characteristics TC e 0 C to a 85 C
Symbol VIL VIH VICL VICH VOL VOH ICC ILI ILO CIN CO CCLK Parameter Input LOW Voltage Input HIGH Voltage Clock Input LOW Voltage Clock Input HIGH Voltage Output LOW Voltage Output HIGH Voltage Power Supply Current Input Leakage Current I O Leakage Current Input Capacitance I O or Output Capacitance Clock Capacitance
VCC e a 5V g10% Max
a0 8
Min
b0 5
Units V V V V V V
Test Conditions
20
b0 5
VCC a 0 5
a0 8
20
VCC a 0 5 0 45
IOL e 3 0 mA IOH e b 0 4 mA 16 MHz 12 5 MHz 0V s VIN s VCC 0 45V s VOUT s VCC b 0 45V FC e 1 MHz FC e 1 MHz FC e 1 MHz
24 156 135
g10 g10
mA mA mA mA pF pF pF
10 12 20
21
80C187
AC Characteristics
TC e 0 C to a 85 C VCC e 5V g10% All timings are measured at 1 5V unless otherwise specified 12 5 MHz Symbol Tdvwh (t6) Twhdx (t7) Trlrh (t8) Twlwh (t9) Tavwl (t10) Tavrl (t11) Tmhrl (t12) Twhax (t18) Trhax (t19) Tivcl (t20) Tclih (t21) Trscl (t24) Tclrs (t25) Tcmdi (t26) Parameter Data Setup to NPWR Data Hold from NPWR NPRD Active Time NPWR Active Time Command Valid to NPWR Command Valid to NPRD Min Delay from PEREQ Active to NPRD Active Command Hold from NPWR Command Hold from NPRD NPRD NPWR RESET to CLK Setup Time NPRD NPWR RESET from CLK Hold Time RESET to CLK Setup RESET from CLK Hold Command Inactive Time Write to Write Read to Read Read to Write Write to Read Min (ns) 43 14 59 59 0 0 40 12 12 46 26 21 14 69 69 69 69 Max (ns) 16 MHz Min (ns) 33 14 54 54 0 0 30 8 8 38 18 19 9 59 59 59 59 Note 1 Note 1 Note 1 Note 1 Max (ns) Test Conditions
NOTE 1 This is an asynchronous input This specification is given for testing purposes only to assure recognition at a specific CLK edge
22
80C187
Timing Responses
All timings are measured at 1 5V unless otherwise specified 12 5 MHz Symbol Trhqz (t27) Trlqv (t28) Tilbh (t29) Twlbv (t30) Tklml (t31) Trhqh (t32) Trlbh (t33) Parameter NPRD Inactive to Data Float NPRD Active to Data Valid ERROR Active to Busy Inactive NPWR Active to Busy Active NPRD or NPWR Active to PEREQ Inactive Data Hold from NPRD Inactive RESET Inactive to BUSY Inactive 2 80 104 80 80 2 60 Min (ns) Max (ns) 18 50 104 60 60 16 MHz Min (ns) Max (ns) 18 45 Test Conditions Note 2 Note 3 Note 4 Note 4 Note 5 Note 3
NOTES The data float delay is not tested 2 The float condition occurs when the measured output current is less than IOL on D15 -D0 3 D15 - D0 loading CL e 100 pF 4 BUSY loading CL e 100 pF 5 On last data transfer of numeric instruction
Clock Timings
12 5 MHz Symbol Tclcl Tclch Tchcl (t1a) (t1B) (t2a) (t2b) (t3a) (t3b) Parameter CLK Period CLK Low Time CLK High Time CKM e 1 CKM e 0 CKM e 1 CKM e 0 CKM e 1 CKM e 0 Min (ns) 80 40 35 9 35 13 10 10 Max (ns) 250 125 16 MHz Min (ns) NA 31 25 NA 7 NA 9 8 8 Max (ns) NA 125 Test Conditions Note 6 Note 6 Note 6 Note 7 Note 6 Note 8 Note 9 Note 10
Tch2ch1(t4) Tch1ch2(t5)
NOTES 16 MHz operation is available only in divide-by-2 mode (CKM strapped LOW) 6 At 1 5V 7 At 0 8V 8 At 2 0V 9 CKM e 1 3 7V to 0 8V at 16 MHz 3 5V to 1 0V at 12 5 MHz 10 CKM e 1 0 8V to 3 7V at 16 MHz 1 0V to 3 5V at 12 5 MHz
23
80C187
AC DRIVE AND MEASUREMENT POINTS CLK INPUT
AC SETUP HOLD AND DELAY TIME MEASUREMENTS GENERAL
270640 - 9
270640 - 10
AC TEST LOADING ON OUTPUTS
270640 - 11
DATA TRANSFER TIMING (INITIATED BY CPU)
270640 - 12
24
80C187
DATA CHANNEL TIMING (INITIATED BY 80C187)
270640 - 13
ERROR OUTPUT TIMING
270640 - 14
CLK RESET TIMING (CKM e 1)
270640 - 15
25
80C187
CLK NPRD NPWR TIMING (CKM e 1)
270640 - 16
CLK RESET TIMING (CKM e 0)
270640 - 17
RESET must meet timing shown to guarantee known phase of internal divide by 2 circuits NOTE RESET NPWR NPRD inputs are asynchronous to CLK Timing requirements are given for testing purposes only to assure recognition at a specific CLK edge
CLK NPRD NPWR TIMING (CKM e 0)
270640 - 18
RESET BUSY TIMING
270640 - 19
26
80C187
DISP (displacement) is optionally present in instructions that have MOD and R M fields Its presence depends on the values of MOD and R M as for instructions of the CPU The instruction summaries that follow assume that the instruction has been prefetched decoded and is ready for execution that bus cycles do not require wait states that there are no local bus HOLD requests delaying processor access to the bus and that no exceptions are detected during instruction execution Timings are given in internal 80C187 clocks and include the time for opcode and data transfer between the CPU and the NPX If the instruction has MOD and R M fields that call for both base and index registers add one clock
80C187 EXTENSIONS TO THE CPU's INSTRUCTION SET
Instructions for the 80C187 assume one of the five forms shown in Table 12 In all cases instructions are at least two bytes long and begin with the bit pattern 11011B which identifies the ESCAPE class of instruction Instructions that refer to memory operands specify addresses using the CPU's addressing modes MOD (Mode field) and R M (Register Memory specifier) have the same interpretation as the corresponding fields of CPU instructions (refer to Programmer's Reference Manual for the CPU) The
Table 12 Instruction Formats Instruction First Byte 1 2 3 4 5 11011 11011 11011 11011 11011 15-11 d 0 0 10 OPA MF P 0 1 9 1 OPA OPA 1 1 8 1 1 1 7 MOD MOD 1 1 1 6 1 1 5 43 Second Byte 1 OPB OPB OP OP 2 10 OPB RM RM ST (i) Optional Field DISP DISP
NOTES OP e Instruction opcode possibly split into two fields OPA and OPB MF e 00 01 10 11 Memory Format 32-Bit Real 32-Bit Integer 64-Bit Real 16-Bit Integer d e Destination 0 Destination is ST(0) 0 Destination is ST(i) R XOR d e 0 Destination (op) Source R XOR d e 1 Source (op) Destination
In FSUB and FDIV the low-order bit of OPB is the R (reversed) bit P e Pop ST(i) e Register Stack Element i 000 e Stack Top 0 Do not pop stack 001 e Second Stack Element 1 Pop stack after operation ESC e 11011

111 e Eighth Stack Element
27
80C187
80C187 Extensions to the 80C186 Instruction Set
Instruction DATA TRANSFER FLD e Loada Integer real memory to ST(0) Long integer memory to ST(0) Extended real memory to ST(0) BCD memory to ST(0) ST(i) to ST(0) FST e Store ST(0) to integer real memory ST(0) to ST(i) FSTP e Store and Pop ST(0) to integer real memory ST(0) to long integer memory ST(0) to extended real ST(0) to BCD memory ST(0) to ST(i) FXCH e Exchange ST(i) and ST(0) COMPARISON FCOM e Compare Integer real memory to ST(0) ST(i) to ST(0) FCOMP e Compare and pop Integer real memory to ST ST(i) to ST(0) FCOMPP e Compare and pop twice ST(1) to ST(0) FTST e Test ST(0) FUCOM e Unordered compare FUCOMP e Unordered compare and pop FUCOMPP e Unordered compare and pop twice FXAM e Examine ST(0) CONSTANTS FLDZ e Load a 0 0 into ST(0) FLD1 e Load a 1 0 into ST(0) FLDPI e Load pi into ST(0) FLDL2T e Load log2(10) into ST(0) ESC 001 ESC 001 ESC 001 ESC 001 1110 1110 1110 1000 1110 1011 1110 1001 22 26 42 42 ESC 110 ESC 001 ESC 101 1101 1001 1110 0100 11100 ST(i) 28 30 26 ESC MF 0 ESC 000 MOD 011 R M 11011 ST(i) DISP 48 78 - 85 28 67 77 - 81 ESC MF 0 ESC 000 MOD 010 R M 11010 ST(i) DISP 48 78 - 85 26 67 77 - 81 ESC 001 11001 ST(i) 20 ESC MF 1 ESC 111 ESC 011 ESC 111 ESC 101 MOD 011 R M MOD 111 R M MOD 111 R M MOD 110 R M 11001 ST (i) DISP DISP DISP DISP 58 93 - 107 116 - 133 83 542 - 564 14 73 80 - 93 ESC MF 1 ESC 101 MOD 010 R M 11010 ST(i) DISP 58 93 - 107 13 73 80 - 93 Byte 0 Encoding Byte 1 Optional Bytes 2 - 3 32-Bit Real Clock Count Range 32-Bit 64-Bit Integer Real 16-Bit Integer
ESC MF 1 ESC 111 ESC 011 ESC 111 ESC 001
MOD 000 R M MOD 101 R M MOD 101 R M MOD 100 R M 11000 ST(i)
DISP DISP DISP DISP
40
65 - 72 90 - 101 74 296 - 305 16
59
67 - 71
ESC 101
11101 ST(i)
28
ESC 010 ESC 001
1110 1001 11100101
28 32-40
Shaded areas indicate instructions not available in 8087 NOTE a When loading single- or double-precision zero from memory add 5 clocks
28
80C187
80C187 Extensions to the 80C186 Instruction Set (Continued)
Encoding Instruction Byte 0 Byte 1 Optional Bytes 2 - 3 32-Bit Real Clock Count Range 32-Bit Integer 64-Bit Real 16-Bit Integer
CONSTANTS (Continued) FLDL2E e Load log2(e) into ST(0) FLDLG2 e Load log10(2) into ST(0) FLDLN2 e Load loge(2) into ST(0) ARITHMETIC FADD e Add Integer real memory with ST(0) ST(i) and ST(0) FSUB e Subtract Integer real memory with ST(0) ST(i) and ST(0) FMUL e Multiply Integer real memory with ST(0) ST(i) and ST(0) FDIV e Divide Integer real memory with ST(0) ST(i) and ST(0) FSQRTi e Square root FSCALE e Scale ST(0) by ST(1) FPREM e Partial remainder of ST(0) d ST(1) FPREM1 e Partial remainder (IEEE) FRNDINT e Round ST(0) to integer FXTRACT e Extract components of ST(0) FABS e Absolute value of ST(0) FCHS e Change sign of ST(0) ESC 001 1111 0101 97 - 187 ESC 001 1111 1000 76 - 157 ESC MF 0 ESC d P 0 ESC 001 ESC 001 MOD 11 R R M 1111 R R M 1111 1010 1111 1101 DISP 108 140 - 147f 90h 124 - 131 69 - 88 128 142 - 146g ESC MF 0 ESC d P 0 MOD 001 R M 1100 1 R M DISP 47 - 57 81 - 102 68 - 93 82 - 93 ESC MF 0 ESC d P 0 MOD 10 R R M 1110 R R M DISP 44 - 52 77 - 92 65 - 73 77 - 91c ESC MF 0 ESC d P 0 MOD 000 R M 11000 ST(i) DISP 44 - 52 77 - 92 65 - 73 77 - 91 ESC 001 ESC 001 ESC 001 1110 1010 1110 1100 1110 1101 42 43 43
25 - 33b
28 - 36d
31 - 59e
ESC 001
1111 1100
68 - 82
ESC 001 ESC 001 ESC 001
1111 0100 1110 0001 1110 0000
72 - 78 24 26 - 27
Shaded areas indicate instructions not available in 8087 NOTES b Add 3 clocks to the range when d e 1 c Add 1 clock to each range when R e 1 d Add 3 clocks to the range when d e 0 e typical e 54 (When d e 0 48-56 typical e 51) f Add 1 clock to the range when R e 1 g 153 - 159 when R e 1 h Add 3 clocks to the range when d e 1 i b0 s ST(0) s a %
29
80C187
80C187 Extensions to the 80C186 Instruction Set (Continued)
Encoding Instruction Byte 0 Byte 1 Optional Bytes 2 - 3 Clock Count Range
TRANSCENDENTAL FCOS e Cosine of ST(0) FPTANk e Partial tangent of ST(0) FPATAN e Partial arctangent FSIN e Sine of ST(0) FSINCOS e Sine and cosine of ST(0) F2XM1l e 2ST(0) b 1 FYL2Xm e ST(1) FYL2XP1n e ST(1) log2(ST(0)) log2(ST(0) a 1 0) ESC 001 ESC 001 ESC 001 ESC 001 ESC 001 ESC 001 ESC 001 ESC 001 1111 1111 1111 0010 1111 0011 1111 1110 1111 1011 1111 0000 1111 0001 1111 1001 125 - 774j 193 - 499j 316 - 489 124 - 773j 196 - 811j 213 - 478 122 - 540 259 - 549
PROCESSOR CONTROL FINIT e Initialize NPX FSTSW AX e Store status word FLDCW e Load control word FSTCW e Store control word FSTSW e Store status word FCLEX e Clear exceptions FSTENV e Store environment FLDENV e Load environment FSAVE e Save state FRSTOR e Restore state FINCSTP e Increment stack pointer FDECSTP e Decrement stack pointer FFREE e Free ST(i) FNOP e No operations ESC 011 ESC 111 ESC 001 ESC 001 ESC 101 ESC 011 ESC 001 ESC 001 ESC 101 ESC 101 ESC 001 ESC 001 ESC 101 ESC 001 1110 0011 1110 0000 MOD 101 R M MOD 111 R M MOD 111 R M 1110 0010 MOD 110 R M MOD 100 R M MOD 110 R M MOD 100 R M 1111 0111 1111 0110 1100 0 ST(i) 1101 0000 DISP DISP DISP DISP DISP DISP DISP 35 17 23 21 21 13 146 113 550 482 23 24 20 14
Shaded areas indicate instructions not available in 8087 NOTES j These timings hold for operands in the range lxl k q 4 For operands not in this range up to 78 clocks may be needed to reduce the operand k 0 s l ST(0) l k 263 l b1 0 s ST(0) s 1 0 m 0 s ST(0) k % b% k ST(1) k a % n 0 s lST(0)l k (2 b S(2)) 2 b% k ST(1) k a %
DATA SHEET REVISION REVIEW
The following list represents the key differences between the -002 and the -001 version of the 80C187 data sheet Please review this summary carefully 1 Figure 10 titled ``System Configuration for 8087 Compatible Exception Trapping'' was replaced with a revised schematic The previous configuration was faulty Updated timing diagrams on Data Transfer Timing Error Output and RESET BUSY
30


▲Up To Search▲   

 
Price & Availability of D80C187-12

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X